-- GENERATED SPELL FOR [Shadowmoon Riding Hound] --


function spell0_23083(pUnit, Event) --@Carnivorous Bite,n/a--
pUnit:FullCastSpellOnTarget(41092,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23083', 15000, 1)
end

function spell1_23083(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(25821,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23083', 2345, 1)
end

function spell2_23083(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_23083', 634, 1)
end

function Sorts_23083(pUnit, Event)
local choix_sorts_23083 = math.random(0, 2)
if choix_sorts_23083 == 0 then
pUnit:RegisterEvent('spell0_23083', 1, 1)
end
if choix_sorts_23083 == 1 then
pUnit:RegisterEvent('spell1_23083', 1, 1)
end
if choix_sorts_23083 == 2 then
pUnit:RegisterEvent('spell2_23083', 1, 1)
end
end

function mob23083_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23083', math.random(1500, 3000), 1)
end

function mob23083_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23083_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23083_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23083, 1, 'mob23083_Action')
RegisterUnitEvent(23083, 2, 'mob23083_Leave')
RegisterUnitEvent(23083, 3, 'mob23083_Kill')
RegisterUnitEvent(23083, 4, 'mob23083_Die')
